/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package accesoDatos.negocio.entity;

import Vo.VoCompania;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author estudiante
 */
@Entity
public class Compania implements Serializable {
    @Id
   private int id;
   private String name;
   private String symbol;
   private String description;

    public VoCompania toVO(){
       VoCompania vo = new VoCompania();
       vo.setId(getId());
       vo.setName(getName());
       vo.setSymbol(getSymbol());
       vo.setDescription(getDescription());
       return vo;
   }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }



}
